<template>
  <div class="rebate">
    <van-nav-bar title="返佣详情">
      <img
        src="~assets/image/arrow_left.png"
        alt=""
        slot="left"
        width="20"
        height="20"
        @click="leftClick"
      />
    </van-nav-bar>
    <div class="money">￥ {{ acqAmount }}</div>
    <p class="money-text">返佣金额</p>
    <div class="item">
      <p>刷卡人号码</p>
      <p>{{ acqphone }}</p>
    </div>
    <div class="item">
      <p>交易金额</p>
      <p>￥{{ amount }}</p>
    </div>
    <div class="item">
      <p>订单号</p>
      <p>{{ ordercode }}</p>
    </div>
    <div class="item">
      <p>交易时间</p>
      <p>{{ createTime }}</p>
    </div>
    <div class="item">
      <p>备注</p>
      <p>{{ remark }}</p>
    </div>
  </div>
</template>
<script>
export default {
  name: "RebateDetails",
  data() {
    return {
      acqAmount: this.$route.params.acqAmount,
      acqphone: this.$route.params.acqphone,
      amount: this.$route.params.amount,
      ordercode: this.$route.params.ordercode,
      createTime: this.$route.params.createTime,
      remark: this.$route.params.remark,
    };
  },
  methods: {
    leftClick() {
      this.$router.back(-1);
    },
  },
};
</script>
<style scoped>
.rebate {
  background-color: #fff;
}
.money {
  margin-top: 20px;
  text-align: center;
  color: #121212;
}
.money-text {
  margin-top: 10px;
  text-align: center;
  color: #444;
  font-size: 16px;
  margin-bottom: 20px;
}

.item {
  display: flex;
  justify-content: space-between;
  padding-left: 15px;
  padding-right: 15px;
  font-size: 14px;
  color: #666;
}
.item p {
  padding: 8px;
}
</style>